<?php

/**
 * Author: ryu
 *
 * @email:    mo5467@126.com
 * @date:     2020-04-23 23:58:44
 * @lastTime: 2020-04-25 23:22:24
 */

namespace Design\Structural\Adapter;

class Kindle implements Ebook
{

    private $page = 1;

    private $totalPage = 100;


    public function unlock()
    {

    }//end unlock()


    public function pressNext()
    {
        $this->page++;

    }//end pressNext()


    public function getPage(): array
    {
        return [
            $this->page,
            $this->totalPage,
        ];

    }//end getPage()


}//end class
